<?xml version="1.0" encoding="UTF-8"?>
<!-- 
    Document   : BuscarPJuridica
    Created on : 29/07/2009, 14:20:33
    Author     : LAS
-->
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ice="http://www.icesoft.com/icefaces/component" xmlns:jsp="http://java.sun.com/JSP/Page">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ice:outputHtml id="outputHtml1">
            <ice:outputHead id="outputHead1">
                <ice:outputStyle href="./resources/stylesheet.css" id="outputStyle1"/>
                <ice:outputStyle href="./xmlhttp/css/rime/rime.css" id="outputStyle2"/>
                <ice:outputStyle href="./resources/css/formata_conteudo.css" id="outputStyle3"/>
                <script language="JavaScript" src="./view/js/MascaraCampos.js" type="text/javascript"></script>
            </ice:outputHead>
            <ice:outputBody id="outputBody1" style="-rave-layout: grid">
                <ice:form id="form1">
                    <!-- Painel Principal -->
                    <ice:panelGroup id="painelPrincipal" styleClass="principal">
                        <!-- Painel Cabeçalho -->
                        <ice:panelLayout id="panelLayoutCabecalho" style=" -rave-layout: grid" styleClass="cabecalho">
                            <ice:commandButton action="#{view$Util.btn_voltar_action}" id="panelLayoutLogo" image="/resources/images/logo_soligee.png" styleClass="logo"/>
                        </ice:panelLayout>
                        <!-- Painel Título -->
                        <ice:panelLayout id="painelTitulo" style="-rave-layout: grid" styleClass="titulo bPessoaj">
                            <!-- Painel Voltar -->
                            <ice:panelLayout id="painelVoltar" styleClass="pnVoltar">
                                <ice:commandButton action="#{view$BuscarPessoaJuridica.btn_voltar_action}" id="btn_voltar"
                                    image="/resources/images/btn/voltar.png" immediate="true" styleClass="btnVoltar"/>
                            </ice:panelLayout>
                            <!-- Fim Painel Voltar -->
                        </ice:panelLayout>
                        <!-- Fim Painel Título -->
                        <!-- Painel Busca -->
                        <ice:panelLayout id="panelPainelBusca" style="-rave-layout: grid" styleClass="painelBusca">
                            <!-- Tipo Busca  -->
                            <ice:selectOneMenu binding="#{view$BuscarPessoaJuridica.tipoBusca}" id="tipoBusca" partialSubmit="true" styleClass="tipoBusca" value="#{view$BuscarPessoaJuridica.selectOneMenu1Bean.selectedObject}">
                                <f:selectItems binding="#{view$BuscarPessoaJuridica.tipoBuscaDefaultItems}" id="tipoBuscaDefaultItems" value="#{view$BuscarPessoaJuridica.tipoBuscaDefaultItems}"/>
                            </ice:selectOneMenu>
                            <!-- CampoABuscar  -->
                            <ice:selectInputText id="campoABuscar" style="z-index: 3" styleClass="campoABuscar"
                                valueChangeListener="#{view$BuscarPessoaJuridica.campoABuscar_processValueChange}" width="240">
                                <f:selectItems binding="#{view$BuscarPessoaJuridica.items}" id="items" value="#{view$BuscarPessoaJuridica.item}"/>
                            </ice:selectInputText>
                            <!-- Botao Buscar -->
                            <ice:commandButton action="#{view$BuscarPessoaJuridica.btnBuscar_action}" id="btnBuscar" styleClass="btnBuscar" value="Buscar"/>
                            <!-- Botão Alterar -->
                            <ice:commandButton action="#{view$BuscarPessoaJuridica.btnAlterar1_action}" id="btnAlterar1" immediate="true"
                                styleClass="btnAlterar" value="Alterar"/>
                            <!-- Botão Excluir -->
                            <ice:commandButton action="#{view$BuscarPessoaJuridica.btn_excluir_action}" id="btn_excluir" styleClass="btnExcluir" value="Excluir"/>
                            <!-- Botão ConfirmarAlteração -->
                            <ice:commandButton action="#{view$BuscarPessoaJuridica.btn_confirmaAlteracao_action}" id="btn_confirmaAlteracao"
                                styleClass="btnAlterar" value="Confirmar Alteração"/>
                        </ice:panelLayout>
                        <!-- Painel Corpo -->
                        <ice:panelLayout id="painelCorpo" styleClass="pnCorpo">
                            <!-- Painel Corpo Esquerda -->
                            <ice:panelLayout id="painelCorpoEsquerda" styleClass="pnCorpoEsquerda">
                                <!-- Tabela ResultadoBusca -->
                                <center>
                                    <ice:dataTable id="tabelaResultadoBusca" rows="5" value="#{view$BuscarPessoaJuridica.dataTable1Model}" var="currentRow">
                                        <f:facet name="footer"/>
                                        <f:facet name="footer"/>
                                        <ice:column id="column1">
                                            <center>
                                                <ice:outputText id="outputText1" value="#{currentRow.codPessoa}"/>
                                            </center>
                                            <f:facet name="header">
                                                <ice:outputText id="outputText2" value="Cód."/>
                                            </f:facet>
                                        </ice:column>
                                        <ice:column id="column2" style="width:200px;">
                                            <h:commandLink action="#{view$BuscarPessoaJuridica.linkAction1_action}" id="linkAction1" value="#{currentRow.nome}"/>
                                            <f:facet name="header">
                                                <ice:outputText id="outputText4" value="Nome"/>
                                            </f:facet>
                                        </ice:column>
                                        <ice:column id="column3" style="width:200px;">
                                            <ice:outputText id="outputText5" value="#{currentRow.razaoSocial}"/>
                                            <f:facet name="header">
                                                <ice:outputText id="outputText6" value="Razão Social"/>
                                            </f:facet>
                                        </ice:column>
                                        <f:facet name="footer"/>
                                        <f:facet name="footer">
                                            <ice:panelGroup id="panelGroup1" style="display: block; text-align: center" styleClass="list-paging-footer">
                                                <ice:commandButton action="#{view$BuscarPessoaJuridica.tabelaResultadoBusca_firstPageAction}"
                                                    id="tabelaResultadoBuscaFooterFirstButton" immediate="true" value="|&lt;"/>
                                                <ice:commandButton action="#{view$BuscarPessoaJuridica.tabelaResultadoBusca_previousPageAction}"
                                                    id="tabelaResultadoBuscaFooterPreviousButton" immediate="true" value="&lt;-"/>
                                                <ice:commandButton action="#{view$BuscarPessoaJuridica.tabelaResultadoBusca_nextPageAction}"
                                                    id="tabelaResultadoBuscaFooterNextButton" immediate="true" value="-&gt;"/>
                                                <ice:commandButton action="#{view$BuscarPessoaJuridica.tabelaResultadoBusca_lastPageAction}"
                                                    id="tabelaResultadoBuscaFooterLastButton" immediate="true" value="&gt;|"/>
                                            </ice:panelGroup>
                                        </f:facet>
                                    </ice:dataTable>
                                </center>
                            </ice:panelLayout>
                            <!-- Painel Corpo Direita -->
                            <ice:panelLayout id="painelCorpoDireita" layout="flow" styleClass="pnCorpoDireita">
                                <!-- Painel TabSet - Buscar PessoaJuridica -->
                                <ice:panelTabSet height="359" id="painelBuscarPessoaJuridica" style="left: 0px; top: 0px; position: absolute" tabPlacement="Top">
                                    <!-- Aba 01 -->
                                    <ice:panelTab id="aba01" label="Pessoa Juridica">
                                        <ice:panelLayout id="conteudoAba01" layout="flow" styleClass="pnLayConteudo">
                                            <!--ID < -->
                                            <ice:outputLabel binding="#{view$BuscarPessoaJuridica.tx_codigo}" id="tx_codigo"
                                                style="left: 0px; top: 8px; position: absolute" value="Codigo Cliente:"/>
                                            <ice:inputText binding="#{view$BuscarPessoaJuridica.campoCodCliente}" id="campoCodCliente" readonly="true"
                                                style="left: -2px; top: 23px; position: absolute; width: 34px" title="Código da Empresa."/>
                                            <!--Nome Completo -->
                                            <ice:outputLabel binding="#{view$BuscarPessoaJuridica.tx_nomeCompleto}" id="tx_nomeCompleto"
                                                style="left: 0px; top: 48px; position: absolute" value="Nome Completo: "/>
                                            <ice:inputText binding="#{view$BuscarPessoaJuridica.campoNomeCompleto}" id="campoNomeCompleto" partialSubmit="true"
                                                required="true" style="left: -2px; top: 70px; position: absolute; width: 191px" title="Insira o nome da Empresa."/>
                                            <!--Data Cadastro -->
                                            <ice:outputLabel binding="#{view$BuscarPessoaJuridica.tx_dataCadastro}" id="tx_dataCadastro"
                                                style="left: 264px; top: 48px; position: absolute" value="Data do Cadastro: "/>
                                            <ice:selectInputDate binding="#{view$BuscarPessoaJuridica.dataCadastro}" id="dataCadastro"
                                                inputTitle="Insira a data do Cadastro." renderAsPopup="true" renderMonthAsDropdown="true"
                                                renderYearAsDropdown="true" style="height: 22px; left: 260px; top: 75px; position: absolute; width: 190px"
                                                value="#{view$BuscarPessoaJuridica.selectInputDate1Bean.date1}" visible="true"/>
                                            <!--Pagina WEB -->
                                            <ice:outputLabel binding="#{view$BuscarPessoaJuridica.tx_paginaWeb}" id="tx_paginaWeb"
                                                style="left: 0px; top: 96px; position: absolute" value="Página WEB: "/>
                                            <ice:inputText binding="#{view$BuscarPessoaJuridica.campoPaginaWeb}" id="campoPaginaWeb"
                                                onkeypress="mascara(this,site);" style="left: -2px; top: 118px; position: absolute; width: 144px" title="Insira o site da Empresa, se houver."/>
                                            <!--E-Mail -->
                                            <ice:outputLabel binding="#{view$BuscarPessoaJuridica.tx_email}" id="tx_email"
                                                style="left: 264px; top: 96px; position: absolute" value="E-Mail: "/>
                                            <ice:inputText binding="#{view$BuscarPessoaJuridica.campoEmail}" id="campoEmail"
                                                style="left: 262px; top: 118px; position: absolute; width: 144px" title="Insira o e-mail da Empresa."/>
                                            <!--Razão Social -->
                                            <ice:outputLabel binding="#{view$BuscarPessoaJuridica.tx_razaoSocial}" id="tx_razaoSocial"
                                                style="left: 0px; top: 144px; position: absolute" value="Razao Social: "/>
                                            <ice:inputText binding="#{view$BuscarPessoaJuridica.campoRazaoSocial}" id="campoRazaoSocial" partialSubmit="true"
                                                required="true" style="left: -2px; top: 166px; position: absolute; width: 143px" title="Insira a Razão Social da Empresa."/>
                                            <!--CNPJ -->
                                            <ice:outputLabel binding="#{view$BuscarPessoaJuridica.tx_cnpj}" id="tx_cnpj"
                                                style="left: 264px; top: 144px; position: absolute" value="CNPJ: "/>
                                            <ice:inputText binding="#{view$BuscarPessoaJuridica.campoCnpj}" id="campoCnpj" maxlength="18"
                                                onkeypress=" style.backgroundColor='white'; mascara(this,cnpj);" partialSubmit="true" required="true"
                                                style="left: 262px; top: 166px; position: absolute; width: 143px" title="Insira o CNPJ da Empresa."/>
                                            <!--Inscrição Estadual -->
                                            <ice:outputLabel binding="#{view$BuscarPessoaJuridica.tx_inscricaoEstadual}" id="tx_inscricaoEstadual"
                                                style="left: 0px; top: 192px; position: absolute" value="Insc. Estadual"/>
                                            <ice:inputText binding="#{view$BuscarPessoaJuridica.campoIncricaoEstadual}" id="campoIncricaoEstadual"
                                                style="left: -2px; top: 214px; position: absolute; width: 143px" title="Insira a Inscrição Estadual da Empresa."/>
                                            <!-- Campo Telefone Comercial -->
                                            <ice:inputText binding="#{view$BuscarPessoaJuridica.campoTelefoneComercial}" id="campoTelefoneComercial"
                                                maxlength="14" onkeypress="mascara(this,telefone);" style="left: 268px; top: 218px; position: absolute" title="Insira o Telefone Comercial da Empresa."/>
                                            <!-- Campo Fax -->
                                            <ice:inputText binding="#{view$BuscarPessoaJuridica.campoFax}" id="campoFax" maxlength="14"
                                                onkeypress="mascara(this,telefone);" style="left: -2px; top: 258px; position: absolute" title="Insira o Fax da Empresa."/>
                                            <!--Upload -->
                                            <ice:outputLabel binding="#{view$BuscarPessoaJuridica.txTelefoneComercial}" id="txTelefoneComercial"
                                                style="left: 264px; top: 192px; position: absolute" value="Telefone Comercial"/>
                                            <!--Próximo Passo -->
                                            <ice:commandLink action="#{view$BuscarPessoaJuridica.link_proximoPassoAba01_action}"
                                                binding="#{view$BuscarPessoaJuridica.link_proximoPassoAba01}" id="link_proximoPassoAba01" immediate="true" styleClass="proximoBtn"/>
                                            <!--Link Cancelar -->
                                            <ice:commandLink action="#{view$BuscarPessoaJuridica.tx_opCancelarAba01_action}"
                                                binding="#{view$BuscarPessoaJuridica.tx_opCancelarAba01}" id="tx_opCancelarAba01" immediate="true" styleClass="cancelarBtn minix"/>
                                            <ice:outputLabel binding="#{view$BuscarPessoaJuridica.telefoneFax}" id="telefoneFax"
                                                style="left: 0px; top: 230px; position: absolute" value="Telefone Fax"/>
                                            </ice:panelLayout>
                                    </ice:panelTab>
                                    <!-- Aba 02 -->
                                    <ice:panelTab id="aba02" label="Endereco">
                                        <ice:panelLayout id="conteudoAba02" layout="flow" styleClass="pnLayConteudo">
                                            <!--Tipo Endereço -->
                                            <ice:outputLabel binding="#{view$BuscarPessoaJuridica.tx_tipoEndereco}" id="tx_tipoEndereco"
                                                style="color: rgb(51, 51, 51); left: 24px; top: 24px; position: absolute" value="Tipo de Endereço: "/>
                                            <ice:selectOneRadio binding="#{view$BuscarPessoaJuridica.tipoEndereco}" id="tipoEndereco" layout="pageDirection"
                                                partialSubmit="true" style="left: 145px; top: 15px; position: absolute" value="#{view$BuscarPessoaJuridica.botaoSelecionadoTipoEndereco.selectedObject}">
                                                <f:selectItems binding="#{view$BuscarPessoaJuridica.opcoesEndereco}" id="opcoesEndereco" value="#{view$BuscarPessoaJuridica.botaoTipoEndereco}"/>
                                            </ice:selectOneRadio>
                                            <!--Rua -->
                                            <ice:outputLabel binding="#{view$BuscarPessoaJuridica.tx_rua}" id="tx_rua"
                                                style="color: rgb(51, 51, 51); left: 24px; top: 72px; position: absolute" value="Rua: "/>
                                            <ice:inputText binding="#{view$BuscarPessoaJuridica.campoRua}" id="campoRua" partialSubmit="true" required="true"
                                                style="left: 22px; top: 94px; position: absolute; width: 288px" title="Insira o Endereço da Empresa."/>
                                            <!--Numero -->
                                            <ice:outputLabel binding="#{view$BuscarPessoaJuridica.tx_numero}" id="tx_numero"
                                                style="color: rgb(51, 51, 51); left: 336px; top: 72px; position: absolute" value="Número: "/>
                                            <ice:inputText binding="#{view$BuscarPessoaJuridica.campoNumero}" id="campoNumero" partialSubmit="true"
                                                required="true" style="left: 334px; top: 94px; position: absolute; width: 48px" title="Insira o Número do Endereço."/>
                                            <!--Complemento -->
                                            <ice:outputLabel binding="#{view$BuscarPessoaJuridica.tx_complemento}" id="tx_complemento"
                                                style="color: rgb(51, 51, 51); left: 24px; top: 124px; position: absolute" value="Complemento:"/>
                                            <ice:inputText binding="#{view$BuscarPessoaJuridica.campoComplemento}" id="campoComplemento"
                                                style="left: 22px; top: 146px; position: absolute; width: 95px" title="Insira o Complemento do Endereço."/>
                                            <!--Bairro -->
                                            <ice:outputLabel binding="#{view$BuscarPessoaJuridica.tx_bairro}" id="tx_bairro"
                                                style="color: rgb(51, 51, 51); left: 168px; top: 124px; position: absolute" value="Bairro: "/>
                                            <ice:inputText binding="#{view$BuscarPessoaJuridica.campoBairro}" id="campoBairro"
                                                style="left: 166px; top: 146px; position: absolute; width: 144px" title="Insira o Bairro do Endereço."/>
                                            <!--CEP -->
                                            <ice:outputLabel binding="#{view$BuscarPessoaJuridica.tx_cep}" id="tx_cep"
                                                style="color: rgb(51, 51, 51); left: 336px; top: 124px; position: absolute" value="CEP: "/>
                                            <ice:inputText binding="#{view$BuscarPessoaJuridica.campoCep}" id="campoCep" maxlength="9"
                                                onkeypress="mascara(this,cep);" partialSubmit="true" required="true"
                                                style="left: 334px; top: 146px; position: absolute; width: 72px" title="Insira o CEP do Endereço."/>
                                            <!--Estado -->
                                            <ice:outputLabel binding="#{view$BuscarPessoaJuridica.tx_uf}" id="tx_uf"
                                                style="color: rgb(51, 51, 51); left: 24px; top: 176px; position: absolute" value="UF: "/>
                                            <ice:selectOneMenu binding="#{view$BuscarPessoaJuridica.opcaoUf}" id="opcaoUf" partialSubmit="true" required="true"
                                                style="left: 22px; top: 190px; position: absolute" title="Selecione o Estado."
                                                value="#{view$BuscarPessoaJuridica.botaoSelecionadoUf.selectedObject}" valueChangeListener="#{view$BuscarPessoaJuridica.opcaoUf_processValueChange}">
                                                <f:selectItems binding="#{view$BuscarPessoaJuridica.estadosUf}" id="estadosUf" value="#{view$BuscarPessoaJuridica.botaoUf}"/>
                                            </ice:selectOneMenu>
                                            <!--Cidade -->
                                            <ice:outputLabel binding="#{view$BuscarPessoaJuridica.tx_cidade}" id="tx_cidade"
                                                style="color: rgb(51, 51, 51); left: 168px; top: 198px; position: absolute" value="Cidade: "/>
                                            <ice:selectOneMenu binding="#{view$BuscarPessoaJuridica.campoCidade}" id="campoCidade" partialSubmit="true"
                                                required="true" style="left: 168px; top: 198px; position: absolute" title="Selecione a Cidade." value="#{view$BuscarPessoaJuridica.defaultSelectedData1.selectedObject}">
                                                <f:selectItems binding="#{view$BuscarPessoaJuridica.selectOneMenu1selectItems2}" id="selectOneMenu1selectItems2" value="#{view$BuscarPessoaJuridica.selectOneMenu1DefaultItems1}"/>
                                            </ice:selectOneMenu>
                                            <!-- Passo Anterior -->
                                            <ice:commandLink action="#{view$BuscarPessoaJuridica.link_AbaAnterior01_action}" id="link_AbaAnterior1"
                                                styleClass="anteriorBtn"/>
                                            <!--Link Cancelar -->
                                            <ice:commandLink action="#{view$BuscarPessoaJuridica.tx_opCancelarAba02_action}"
                                                binding="#{view$BuscarPessoaJuridica.tx_opCancelarAba02}" id="tx_opCancelarAba02" immediate="true" styleClass="cancelarBtn minix"/>
                                           </ice:panelLayout>
                                    </ice:panelTab>
                                </ice:panelTabSet>
                            </ice:panelLayout>
                            <!-- Fim Painel Corpo Direita -->
                            <!-- Painel Rodapé -->
                            <ice:panelLayout id="painelRodape" layout="flow" styleClass="boxRodape">
                                <ice:panelLayout id="painelRodapeEsq" styleClass="esqRodape"/>
                                <ice:panelLayout id="logoRodape" styleClass="logoRodape"/>
                                <ice:panelLayout id="painelRodapeDir" styleClass="dirRodape"/>
                            </ice:panelLayout>
                            <!-- Fim Painel Rodapé -->
                        </ice:panelLayout>
                        <!-- Fim - Painel Corpo -->
                        <!--Inicio - Janela Pop-up -->
                        <ice:panelPopup autoCentre="true" draggable="true" id="panelPopup" modal="true"
                            rendered="#{view$BuscarPessoaJuridica.panelPopup1Bean.showDraggablePanel}" styleClass="jpopup" visible="#{view$BuscarPessoaJuridica.panelPopup1Bean.showModalPanel}">
                            <f:facet name="header">
                                <ice:outputText id="outputText3" value="AtenÃ§Ã£o"/>
                            </f:facet>
                            <f:facet name="body">
                                <ice:panelGroup id="panelPopBody" styleClass="jpopBody">
                                    <ice:panelLayout id="panelPopTxt" styleClass="jpopTxt">
                                        <ice:outputText id="textoPopUp1" value="body text"/>
                                    </ice:panelLayout>
                                    <ice:panelLayout id="panelPopBtn" styleClass="jpopBtn">
                                        <ice:commandButton action="#{view$BuscarPessoaJuridica.btnPopUp1_action}" id="btnPopUp1" value="submit"/>
                                        <ice:commandButton action="#{view$BuscarPessoaJuridica.btnPopUp2_action}" id="btnPopUp2" value="submit"/>
                                    </ice:panelLayout>
                                </ice:panelGroup>
                            </f:facet>
                        </ice:panelPopup>
                        <!--Fim - Janela Pop-up -->
                    </ice:panelGroup>
                    <!-- Fim - Painel Principal -->
                </ice:form>
            </ice:outputBody>
        </ice:outputHtml>
    </f:view>
</jsp:root>
